import {BasicColumn,FormSchema} from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
    {
        title: '返货id',
        dataIndex: 'orderReturnId',
        width: 200,
    },
    {
        title: '商品ID',
        dataIndex: 'orderProductId',
        width: 200,
    },
    {
        title: '订单ID',
        dataIndex: 'orderId',
        width: 200,
    },
    {
        title: '返货状态（0未发货1已发货)',
        dataIndex: 'deliverStatus',
        width: 200,
    },
    {
        title: '快递单号',
        dataIndex: 'courierNumber',
        width: 200,
    },
    {
        title: '快递公司',
        dataIndex: 'expressCode',
        width: 200,
    },
    {
        title: '收货人电话',
        dataIndex: 'phone',
        width: 200,
    },
    {
        title: '返货数量',
        dataIndex: 'returnNum',
        width: 200,
    },
    {
        title: '收货人姓名',
        dataIndex: 'receiving',
        width: 200,
    },
    {
        title: '收货地址',
        dataIndex: 'address',
        width: 200,
    },
    {
        title: '操作人',
        dataIndex: 'operationUserName',
        width: 200,
    },
    {
        title: '操作时间',
        dataIndex: 'operationTime',
        width: 200,
    },
];

export const searchFormSchema: FormSchema[] = [
    {
        field: 'orderId',
        label: '订单编号',
        component: 'Input',
        colProps: {span: 3},
    },
    {
        field: 'orderId',
        label: '客户名称',
        component: 'Input',
        colProps: {span: 3},
    },
];

export const formSchema: FormSchema[] = [
    {
        label: '返货id',
        field: 'orderReturnId',
        component: 'Input',
        required: true,
    },
    {
        label: '商品ID',
        field: 'orderProductId',
        component: 'Input',
        required: true,
    },
    {
        label: '订单ID',
        field: 'orderId',
        component: 'Input',
        required: true,
    },
    {
        label: '返货状态（0未发货1已发货)',
        field: 'deliverStatus',
        component: 'Input',
        required: true,
    },
    {
        label: '快递单号',
        field: 'courierNumber',
        component: 'Input',
        required: true,
    },
    {
        label: '快递公司',
        field: 'expressCode',
        component: 'Input',
        required: true,
    },
    {
        label: '收货人电话',
        field: 'phone',
        component: 'Input',
        required: true,
    },
    {
        label: '返货数量',
        field: 'returnNum',
        component: 'Input',
        required: true,
    },
    {
        label: '收货人姓名',
        field: 'receiving',
        component: 'Input',
        required: true,
    },
    {
        label: '收货地址',
        field: 'address',
        component: 'Input',
        required: true,
    },
    {
        label: '操作人',
        field: 'operationUserName',
        component: 'Input',
        required: true,
    },
    {
        label: '操作时间',
        field: 'operationTime',
        component: 'Input',
        required: true,
    },
];
